﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 角色的权限
    /// </summary>
    [Description("角色的权限")]
    [Table("RolePermission")]
    public class RolePermission : TableModelBase
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        [Description("角色Id,Role表的Id")]
        public long? RoleId { get; set; }

        /// <summary>
        /// 权限Id
        /// </summary>
        [Description("权限Id,Permission表的Id")]
        public long? PermissionId { get; set; }
    }
}
